package com.party.business.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.party.business.mapper.ExamplesWarMapper;
import com.party.business.domain.ExamplesWar;
import com.party.business.service.IExamplesWarService;

/**
 * 战例数据Service业务层处理
 *
 * @author ruoyi
 * @date 2025-06-24
 */
@Service
public class ExamplesWarServiceImpl extends ServiceImpl<ExamplesWarMapper,ExamplesWar>  implements IExamplesWarService
{
    @Autowired
    private ExamplesWarMapper examplesWarMapper;

    /**
     * 查询战例数据
     *
     * @param id 战例数据主键
     * @return 战例数据
     */
    @Override
    public ExamplesWar selectExamplesWarById(Long id)
    {
        return examplesWarMapper.selectExamplesWarById(id);
    }

    /**
     * 查询战例数据列表
     *
     * @param examplesWar 战例数据
     * @return 战例数据
     */
    @Override
    public List<ExamplesWar> selectExamplesWarList(ExamplesWar examplesWar)
    {
        return examplesWarMapper.selectExamplesWarList(examplesWar);
    }

    /**
     * 新增战例数据
     *
     * @param examplesWar 战例数据
     * @return 结果
     */
    @Override
    public int insertExamplesWar(ExamplesWar examplesWar)
    {
            return examplesWarMapper.insertExamplesWar(examplesWar);
    }

    /**
     * 修改战例数据
     *
     * @param examplesWar 战例数据
     * @return 结果
     */
    @Override
    public int updateExamplesWar(ExamplesWar examplesWar)
    {
        return examplesWarMapper.updateExamplesWar(examplesWar);
    }

    /**
     * 批量删除战例数据
     *
     * @param ids 需要删除的战例数据主键
     * @return 结果
     */
    @Override
    public int deleteExamplesWarByIds(Long[] ids)
    {
        return examplesWarMapper.deleteExamplesWarByIds(ids);
    }

    /**
     * 删除战例数据信息
     *
     * @param id 战例数据主键
     * @return 结果
     */
    @Override
    public int deleteExamplesWarById(Long id)
    {
        return examplesWarMapper.deleteExamplesWarById(id);
    }
}
